package string;

public class Demo16 {
    public static void main(String[] args) {
        StringBuilder buf = new StringBuilder();
        buf.append("苍老师")
                 .append("早晨起来")
                 .append("干了惊天动地大事情")
                 .append("!")
                 .insert(1,"老师")
                 .delete(3,3+2);
        System.out.println(buf);

        /*
        buf.append("苍老师");
        buf.append("早晨起来");
        buf.append("干了惊天动地大事情");
        buf.append("!");
        buf.insert(1,"老师");
        buf.delete(3,3+2);
        System.out.println(buf);
         */
    }
}
